package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 广告
 * </p>
 *
 * @author Mr.Xiayh
 * @since 2024-06-16
 */
@Getter
@Setter
@TableName("AFoneshop_ad")
@ApiModel(value = "AfoneshopAd对象", description = "广告")
public class AfoneshopAd implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("索引号")
    @TableId(value = "id", type = IdType.AUTO)
    private Short id;

    @ApiModelProperty("轮播图id")
    private Short adPositionId;

    @ApiModelProperty("媒体类型")
    private Byte mediaType;

    @ApiModelProperty("广告名字")
    private String name;

    @ApiModelProperty("广告连接")
    private String link;

    @ApiModelProperty("图片地址")
    private String imageUrl;

    @ApiModelProperty("广告信息（可填可不填）")
    private String content;

    @ApiModelProperty("结束时间")
    private LocalDateTime endTime;

    @ApiModelProperty("决定哪些广告开启（1）关闭（0）")
    private Byte enabled;
}
